<%-- 
    Document   : logoff
    Created on : 25/11/2011, 09:58:09 PM
    Author     : Ces
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
</html>


<%

    HttpSession objSesion = request.getSession(false); 
    
    objSesion.setAttribute("username", null);
    response.sendRedirect("index.jsp");

%>